package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerUploadCustomResourceResponse extends BaseQLResponse
{
    /// <summary>
    /// oss中的唯一key
    /// </summary>
    public String OssKey;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj.getJSONObject("error_response");
        if (t != null && !t.isNullObject())
        {
            ErrCode = t.getString("code");
            ErrMsg = t.getString("msg");
        }
        else
        {
            t = jsonObj.getJSONObject("butler_upload_custom_resource_response");
            if (t.has("oss_key"))
                OssKey = t.getString("oss_key");
        }
    }
}
